/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.dynread.com
 */
package com.dynread.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dynread.mall.entity.GoodsCategory;
import com.dynread.mall.entity.GoodsCategoryTree;

import java.util.List;

/**
 * 商品分类
 *
 * @author drinvay
 * @date 2022/5/6 10:16
 */
public interface GoodsCategoryService extends IService<GoodsCategory> {

    /**
     * 新增商品分类
     *
     * @param entity
     * @return boolean
     * @author drinvay
     * @date 2022/5/6 10:32
     */
    boolean add(GoodsCategory entity);

    /**
     * 修改商品分类
     *
     * @param entity
     * @return boolean
     * @author drinvay
     * @date 2022/5/6 10:40
     */
    boolean modify(GoodsCategory entity);

	/**
	 * 查询分类树
	 *
	 * @return 树
	 */
	List<GoodsCategoryTree> selectTree(GoodsCategory goodsCategory);
}
